<template>
  <div @click="getNum2">{{ a }},{{ b }}</div>
</template>

<script>
export default {
  props: {
    a: {
      type: Number,
      required: true
    },
    b: {
      type: Number,
      required: true
    }
  },
  methods: {
    getNum2() {
      this.$emit('update:a', 222)
      this.$emit('update:b', 444)
    }
  }
}
</script>

<style>

</style>
